/**
 * a dummy professor class
 * @author Lukas Koell
 * @author David Medenjak
 * @author Johannes Riedmann
 */

public class Professor extends Person {
    /**
     * the professors institute
     */
    private String institute;

    /**
     * constructor with name and institute
     * @param name Name of the professor.
     * @param institute Institute the person works in.
     */
    public Professor(String name, String institute) {
        super(name);
        this.institute = institute;
    }
    
    /**
     * constructor with name only
     * @param name Name of the professor.
     */
    public Professor(String name) {
        super(name);
    }
    
    /**
     * @return the institute where the professor works
     */
    public String getInstitute() {
        return institute;
    }
    
    /**
     * sets the professors institute
     * @param institute
     */
    public void setInstitute(String institute) {
        this.institute = institute;
    }

    /**
     * @return String representation for Professor
     */
    @Override
    public String toString() {
        return getName() + ", Institute: " + institute;
    }
}
